package com.findFish.fish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.fish.mapper.FishHarvestMapper;
import com.findFish.fish.domain.FishHarvest;
import com.findFish.fish.service.IFishHarvestService;

/**
 * 鱼类收获记录Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class FishHarvestServiceImpl implements IFishHarvestService 
{
    @Autowired
    private FishHarvestMapper fishHarvestMapper;

    /**
     * 查询鱼类收获记录
     * 
     * @param id 鱼类收获记录主键
     * @return 鱼类收获记录
     */
    @Override
    public FishHarvest selectFishHarvestById(Long id)
    {
        return fishHarvestMapper.selectFishHarvestById(id);
    }

    /**
     * 查询鱼类收获记录列表
     * 
     * @param fishHarvest 鱼类收获记录
     * @return 鱼类收获记录
     */
    @Override
    public List<FishHarvest> selectFishHarvestList(FishHarvest fishHarvest)
    {
        return fishHarvestMapper.selectFishHarvestList(fishHarvest);
    }

    /**
     * 新增鱼类收获记录
     * 
     * @param fishHarvest 鱼类收获记录
     * @return 结果
     */
    @Override
    public int insertFishHarvest(FishHarvest fishHarvest)
    {
        return fishHarvestMapper.insertFishHarvest(fishHarvest);
    }

    /**
     * 修改鱼类收获记录
     * 
     * @param fishHarvest 鱼类收获记录
     * @return 结果
     */
    @Override
    public int updateFishHarvest(FishHarvest fishHarvest)
    {
        return fishHarvestMapper.updateFishHarvest(fishHarvest);
    }

    /**
     * 批量删除鱼类收获记录
     * 
     * @param ids 需要删除的鱼类收获记录主键
     * @return 结果
     */
    @Override
    public int deleteFishHarvestByIds(Long[] ids)
    {
        return fishHarvestMapper.deleteFishHarvestByIds(ids);
    }

    /**
     * 删除鱼类收获记录信息
     * 
     * @param id 鱼类收获记录主键
     * @return 结果
     */
    @Override
    public int deleteFishHarvestById(Long id)
    {
        return fishHarvestMapper.deleteFishHarvestById(id);
    }
}
